AnnotationTarget

enum AnnotationTarget : Enum<AnnotationTarget>

Contains the list of code elements which are the possible annotation targets

Entries

TYPEALIAS
Link copied to clipboard

Type alias

FILE
Link copied to clipboard

File

EXPRESSION
Link copied to clipboard

Any expression

TYPE
Link copied to clipboard

Type usage

PROPERTY_SETTER
Link copied to clipboard

Property setter only

PROPERTY_GETTER
Link copied to clipboard

Property getter only

FUNCTION
Link copied to clipboard

Function (constructors are not included)

CONSTRUCTOR
Link copied to clipboard

Constructor only (primary or secondary)

VALUE_PARAMETER
Link copied to clipboard

Value parameter of a function or a constructor

LOCAL_VARIABLE
Link copied to clipboard

Local variable

FIELD
Link copied to clipboard

Field, including property's backing field

PROPERTY
Link copied to clipboard

Property

TYPE_PARAMETER
Link copied to clipboard

Generic type parameter (unsupported yet)

ANNOTATION_CLASS
Link copied to clipboard

Annotation class only

CLASS
Link copied to clipboard

Class, interface or object, annotation class is also included

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int